<?php
if(isset($aComponents) && isset($aComponents['R']) && count($aComponents['R']) > 0)
{
?>
<div id="centerCol">
	<?php
	
	if(isset($qBanner) && $qBanner->num_rows() === 1)
	{
	?>
	<div id="banner"><img src="/assets/media/original/<?php echo $qBanner->row(0)->media_subfolder; ?>/<?php echo $qBanner->row(0)->media_id; ?>.<?php echo $qBanner->row(0)->extension_ext; ?>" /><div id="bannerMask"></div></div>
	<?php
	}
	
	echo $oPageContent->page_content;
	
	?>
</div>
<div id="rightCol">
<?php
foreach($aComponents['R'] as $sComponent)
{
	echo $sComponent;
}
?>
</div>
<?php
}
else
{
?>
<div id="centerCol" style="width:648px;">
	<?php
	
	if(isset($qBanner) && $qBanner->num_rows() === 1)
	{
		//$oMedia = $qBanner->row(0)->oMedia;
	?>
	<div id="banner"><img src="/assets/media/original/<?php echo $qBanner->row(0)->media_subfolder; ?>/<?php echo $qBanner->row(0)->media_id; ?>.<?php echo $qBanner->row(0)->extension_ext; ?>" /><div id="bannerMask"></div></div>
	<?php
	}
	
	echo $oPageContent->page_content;
	
	?>
</div>
<?php
}
?>